import java.util.Scanner;

public class text {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int vip;
        while (true) {
            System.out.println("请输入你的会员等级");
            vip = sc.nextInt();
            if (vip > 0 && vip < 4) {
                break;
            } else {
                System.out.println("没有找到该会员等级,请重新输入");
            }
        }
        System.out.println("请输入商品价格");
        int price = sc.nextInt();
        if (vip == 1) {
            System.out.println("请支付" + 0.9 * price);
        } else if (vip == 2) {
            System.out.println("请支付" + 0.8 * price);
        } else {
            System.out.println("请支付" + 0.7 * price);
        }

    }
}
